import request from "@/utils/request";
import { PRODUCE, INDEX } from "@/config/baseUrl";

// 查询月生产数据
export function getMonthProduceData(params) {
  return request({
    url: PRODUCE + "/report/lineMonthPanel/getMonthProduceData",
    method: "get",
    params,
  });
}

// 查询日生产数据
export function getDayProduceData(params) {
  return request({
    url: PRODUCE + "/report/lineMonthPanel/getDayProduceData",
    method: "get",
    params,
  });
}

// 查询包材损耗率
export function getWasteInfo(params) {
  return request({
    url: INDEX + "/value/line/getLineWasteInfoVo",
    method: "get",
    params,
  });
}

// 查询人效
export function getMonthUserEffeciencyData(params) {
  return request({
    url: PRODUCE + "/report/lineMonthPanel/getMonthUserEffeciencyData",
    method: "get",
    params,
  });
}

// 查询月电耗
export function getLineMonthElecUseInfo(params) {
  return request({
    url: INDEX + "/value/linePanel/getLineMonthElecUseInfo",
    method: "get",
    params,
  });
}

// 查询日电耗
export function getLineDayElecUseInfo(params) {
  return request({
    url: INDEX + "/value/linePanel/getLineDayElecUseInfo",
    method: "get",
    params,
  });
}

// 查询月水耗
export function getLineMonthWaterUseInfo(params) {
  return request({
    url: INDEX + "/value/linePanel/getLineMonthWaterUseInfo",
    method: "get",
    params,
  });
}

// 查询日水耗
export function getLineDayWaterUseInfo(params) {
  return request({
    url: INDEX + "/value/linePanel/getLineDayWaterUseInfo",
    method: "get",
    params,
  });
}
